package com.unidt.www.module.bpm.dal.dataobject.definition;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.unidt.www.framework.mybatis.core.dataobject.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author sk
 * @Description: 流程运行时 截止时间
 * @Date 2023/2/6 17:55
 **/
@TableName(value = "ACT_RU_ACT_TIME", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@AllArgsConstructor
public class ActRuActTimeDo extends BaseDO implements Serializable {

    @TableId
    private Long id;

    @ApiModelProperty(value = "流程定义ID")
    private  String processDefinitionId;

    @ApiModelProperty(value = "流程实例ID")
    private  String processInstanceId;

    @ApiModelProperty(value = "节点定义ID")
    private  String actId;

    @ApiModelProperty(value = "任务ID")
    private  String taskId;

    @ApiModelProperty(value = "任务处理人")
    private  String assignee;


    @ApiModelProperty(value = "任务处理人")
    private  Long timeOutSecond;


    @ApiModelProperty(value = "截止时间")
    private Date deadTime;

    @ApiModelProperty(value = "任务开始时间")
    private Date startTime;

    @ApiModelProperty(value = "任务结束时间")
    private Date endTime;

    public ActRuActTimeDo() {
    }

    public ActRuActTimeDo(String processDefinitionId, String processInstanceId, String actId, String taskId) {
        this.processDefinitionId = processDefinitionId;
        this.processInstanceId = processInstanceId;
        this.actId = actId;
        this.taskId = taskId;
    }
}
